#include <iostream>
using namespace std;

class Point{
public:
    Point()
    : _ix(0), _iy(0){}

    Point(int x ,int y)
    : _ix(x), _iy(y){}

    Point(const Point & rhs)
    : _ix(rhs._ix), _iy(rhs._iy){}

    void print(){
        cout << "(" << _ix
             << "," << _iy
             << ")";
    }

    ~Point(){
        cout << "~Point()" << endl;
    }
private:
    int _ix;
    int _iy;
};


void test2(){
    Point *pt = new Point(101, 2);
    pt->print();

}

int main(void){
    test2();
    return 0;
}
